<html><title>Fig4TestDiscountGroup</title><body>
<h1><a href="Fig4TestDiscountGroup.html">Fig4TestDiscountGroup</a></h1>
<h3>Test discounts against configured Discount Groups:</h3>
<table border cellspacing=0 cellpadding=3>
<tr><td ColSpan=5>DiscountGroupsEntry</td></tr>
<tr><td>future value</td><td>max balance</td><td>min purchase</td><td>discount percent</td><td>add()</td></tr>
<tr><td>low</td><td>0.00</td><td>0.00</td><td>0</td><td>true</td></tr>
<tr><td>medium</td><td>0.00</td><td>500.00</td><td>5</td><td>true</td></tr>
<tr><td>medium</td><td>500.00</td><td>500.00</td><td>3</td><td>true</td></tr>
<tr><td>high</td><td>500.00</td><td>2000.00</td><td>10</td><td>true</td></tr>
<tr><td>high</td><td>1000.00</td><td>500.00</td><td>5</td><td>true</td></tr>
</table>
<ul><li>Low Future Value:</li></ul>
<table border cellspacing=0 cellpadding=3>
<tr><td ColSpan=4>CalculateDiscounts</td></tr>
<tr><td>future value</td><td>owing</td><td>purchase</td><td>discount()</td></tr>
<tr><td>low</td><td>0.00</td><td>1000.00</td><td>0.00</td></tr>
<tr><td></td><td>1000.00</td><td>5000.00</td><td>0.00</td></tr>
</table>
<ul><li>Medium Future Value:</li></ul>
<table border cellspacing=0 cellpadding=3>
<tr><td ColSpan=4>CalculateDiscounts</td></tr>
<tr><td>future value</td><td>owing</td><td>purchase</td><td>discount()</td></tr>
<tr><td>medium</td><td>0.00</td><td>400.00</td><td>0.00</td></tr>
<tr><td></td><td>0.00</td><td>600.00</td><td>30.00</td></tr>
<tr><td></td><td>2000.00</td><td>1000.00</td><td>0.00</td></tr>
</table>
<ul><li>High Future Value:</li></ul>
<table border cellspacing=0 cellpadding=3>
<tr><td ColSpan=4>CalculateDiscounts</td></tr>
<tr><td>future value</td><td>owing</td><td>purchase</td><td>discount()</td></tr>
<tr><td>high</td><td>0.00</td><td>400.00</td><td>0.00</td></tr>
<tr><td></td><td>0.00</td><td>600.00</td><td>30.00</td></tr>
<tr><td></td><td>1100.00</td><td>500.00</td><td>0.00</td></tr>
<tr><td></td><td>1000.00</td><td>500.00</td><td>25.00</td></tr>
<tr><td></td><td>2000.00</td><td>2000.00</td><td>0.00</td></tr>
<tr><td></td><td>400.00</td><td>2000.00</td><td>200.00</td></tr>
</table>
</body></html>
